import fetch from '@/config/fetch'

/**
 * 登陆
 */
export const login = data => fetch('/emp/loginByMobile', data, 'POST');

export const employeeListApi = data => fetch('/emp/list', data, 'POST');

export const empDetailApi = data => fetch('/emp/detail', data, 'POST');

export const deleteEmpApi=data=>fetch('/emp/delete', data, 'POST');

export const addEmpApi = data => fetch('/emp/add', data, 'POST');
export const  modifyEmpApi = data => fetch('/emp/update', data, 'POST');

export const getRuleMenu=data=>fetch('/xray/employee/getMenuRules',data,'POST');






//获取我的账户
export const getAccount = data => fetch('/account/getAccount', data, 'POST');
//请假
export const askAbsent = data => fetch('/absent/add', data, 'POST');
//请假列表
export const queryDealAbsentListApi = data => fetch('/absent/askAbsentMainPage', data, 'POST');
//处理请假
export const confirmAbsentApi = data => fetch('/absent/confirmAbsent', data, 'POST');
//取消请假
export const cancelAskAbsent = data => fetch('/absent/cancelAskAbsent', data, 'POST');

//新增科目
export const addSubjectApi = data => fetch('/subject/add', data, 'POST');
//修改科目
export const updateSubjectApi = data => fetch('/subject/update', data, 'POST');
//根据条件获取科目
export const subjectQueryByTag = data => fetch('/subject/queryByTag', data, 'POST');
export const deleteRoomApi = data => fetch('/room/delete', data, 'POST');

//删除科目
export const deleteSubject = data => fetch('/subject/delete', data, 'POST');
//科目详情
export const detailSubjectApi = data => fetch('/subject/detail', data, 'POST');
//科目列表
export const subjectList = data => fetch("/subject/list", data, 'POST');

//新加教室
export const addRoomApi = data => fetch("/room/add", data, 'POST');
//修改教室
export const modifyRoomApi = data => fetch("/room/update", data, 'POST');
//教室详情
export const detailRoomApi = data => fetch("/room/detail", data, 'POST');
//教室列表
export const roomListApi = data => fetch("/room/list", data, 'POST');
export const deleteCheckLeave=data=>fetch('/xray/changeClassList',data,'POST');
export const queryCheckWorkHistory=data=>fetch('/xray/user/queryCheckWorkHistory',data,'POST');
//新增组织
export const addOrgOper = data => fetch("/org/addorg", data, 'POST');


//
export const orgSettingDetailApi=data=>fetch("/org/settingdetail",data,'POST');






//加入组织
export const joinOrg = data => fetch("/org/joinorg", data, 'POST');
//离开组织
export const leaveOrg = data => fetch("/org/leaveorg", data, 'POST');
//组织列表
export const orgList = data => fetch("/org/orgList", data, 'POST');
//组织详情
export const orgDetal = data => fetch("/org/orgDetal", data, 'POST');


//添加课程
export const addClsApi = data => fetch("/cls/addCls", data, 'POST');
//完结课程
export const finishCls = data => fetch("/cls/finishCls", data, 'POST');
//更新课程
export const updateCls = data => fetch("/cls/updateCls", data, 'POST');
//课程列表
export const clsListApi = data => fetch("/cls/list", data, 'POST');
//课程下的学生
export const stuListOfCls = data => fetch("/org/stuListOfCls", data, 'POST');
//课程详情
export const detailCls = data => fetch("/cls/detail", data, 'POST');
//加入课程
export const joinCls = data => fetch("/cls/joinCls", data, 'POST');
//离开课程
export const leaveCls = data => fetch("/cls/leaveCls", data, 'POST');

//添加合同
export const addContractApi = data => fetch("/contract/addContract", data, 'POST');

//分页查询合同
export const queryContractPage = data => fetch("/contract/queryContractPage", data, 'POST');

//合同详情
export const contractDetail = data => fetch("/contract/contractDetail", data, 'POST');

//合同统计
export const feeTotal = data => fetch("/contract/feeTotal", data, 'POST');

//添加通知
export const addNotice = data => fetch("/notice/add", data, 'POST');
//通知详情
export const detailNotice = data => fetch("/notice/detailNotice", data, 'POST');
//删除通知
export const deleteNotice = data => fetch("/notice/deleteNotice", data, 'POST');
//通知列表
export const queryList = data => fetch("/notice/queryList", data, 'POST');

//下一个课节
export const periodrecordList = data => fetch("/periodrecord/queryList", data, 'POST');
//课程课节列表
export const recordlistOfCls = data => fetch("/periodrecord/recordlistOfCls", data, 'POST');
//删除课节
export const deleteRecord = data => fetch("/periodrecord/delete", data, 'POST');
//添加课节
export const addReocrd = data => fetch("/periodrecord/add", data, 'POST');
//未完成课节列表
export const noFinishRecords = data => fetch("/periodrecord/noFinishRecordss", data, 'POST');
//课节统计
export const periodRecordTotal = data => fetch("/periodrecord/periodRecordTotal", data, 'POST');

//规则详情
export const periodruleDetail = data => fetch("/periodrule/detail", data, 'POST');
//更新课节规则
export const updatePeriodRule = data => fetch("/periodrule/update", data, 'POST');
//删除课节规则
export const deletePeriodRule = data => fetch("/periodrule/delete", data, 'POST');
//添加课节规则
export const addPeriodRule = data => fetch("/periodrule/addPeriodRule", data, 'POST');
//课节规则列表
export const periodruleList = data => fetch("/periodrule/list", data, 'POST');

//获取用户权限
export const listUserRules = data => fetch("/role/listUserRules", data, 'POST');



//新增学生
export const addStuApi = data => fetch("/stu/addStu", data, 'POST');
//删除学生
export const deleteStuApi = data => fetch("/stu/delete", data, 'POST');
//查询学生
export const queryStusApi = data => fetch("/stu/query", data, 'POST');
//更新学生
export const updateStuApi = data => fetch("/stu/updateStu", data, 'POST');
//学生详情
export const stuDetail = data => fetch("/stu/stuDetail", data, 'POST');
//组织下的学生数量
export const baseOrgStuCount = data => fetch("/stu/baseOrgStuCount", data, 'POST');
//课程下的学生
export const clssOfStu = data => fetch("/stu/clssOfStu", data, 'POST');
//
export const waitDetailStusInfo = data => fetch("/stu/waitDetailStusInfo", data, 'POST');
//
export const fb7days = data => fetch("/stu/fb7days", data, 'POST');
//
export const noconcart = data => fetch("/stu/noconcart", data, 'POST');
//
export const remainPeriodRecordLt = data => fetch("/stu/remainPeriodRecordLt", data, 'POST');
//
export const endTimeLt = data => fetch("/stu/endTimeLt", data, 'POST');
//
export const noPeriodRecordStus = data => fetch("/stu/noPeriodRecordStus", data, 'POST');

export const waitAbsentDealStus = data => fetch("/stu/waitAbsentDealStus", data, 'POST');

export const noBindWxStus = data => fetch("/stu/noBindWxStus", data, 'POST');
//
export const stuQueryByTag = data => fetch("/stu/queryByTag", data, 'POST');
//
export const AbsentStus = data => fetch("/stu/AbsentStus", data, 'POST');
//

export const checkPeriod = data => fetch("/check/checkPeriod", data, 'POST');

export const checkTotal = data => fetch("/check/checkTotal", data, 'POST');
export const checkList = data => fetch("/check/checkList", data, 'POST');
export const waitCheckList = data => fetch("/check/waitCheckList", data, 'POST');
export const getBusConfig = data => fetch("/getBusCnfonfig/conf", data, 'POST');
export const  getMyOrgList=data=>fetch("/org/list",data,'POST');

export const  saveClsNotifyApi=data=>fetch("/clsNotify/save",data,'POST');


export const notifysettingDetailApi=data=>fetch("/notifysetting/detail",data,'POST');
export const modifySettingApi=data=>fetch("/notifysetting/update",data,'POST');













